<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/common.jsp"%>
<!DOCTYPE html>
<html lang="zh">
<meta charset="utf-8">
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-invoiceApply-edit">
			<input id="iaId" name="iaId" value="${invoiceApply.iaId}" type="hidden">
			<input id="taskId" name="taskId" value="${taskId}" type="hidden">
			<div class="form-group">
				<label class="col-sm-2 control-label">纳税人号码：</label>
				<div class="col-sm-8">
					<input id="iaTaxpayerNum" name="iaTaxpayerNum" value="${invoiceApply.iaTaxpayerNum}" class="form-control"
						type="text" disabled="disabled">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">纳税人名字：</label>
				<div class="col-sm-8">
					<input id="iaTaxpayerName" name="iaTaxpayerName" value="${invoiceApply.iaTaxpayerName}"
						class="form-control" type="text" disabled="disabled">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">企业税号：</label>
				<div class="col-sm-8">
					<input id="bussinessNum" name="bussinessNum" value="${invoiceApply.bussinessNum}" class="form-control"
						type="text" disabled="disabled">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">购票手折：</label>


				<div class="col-sm-8">
					<img class="img-rounded" width="100" height="100" id="img1" src="${ctx}/${invoiceApply.iaGpszPicture}"
						class="img-thumbnail" />
				</div>


			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">申请购买发票审批表：</label>

				<div class="col-sm-8">
					<img class="img-rounded" width="100" height="100" id="img2" src="${ctx}/${invoiceApply.iaFpshPicture}"
						class="img-thumbnail" />
				</div>

			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">ic卡：</label>

				<div class="col-sm-8">
					<img class="img-rounded" width="100" height="100" id="img3" src="${ctx}/${invoiceApply.iaIcCardPicture}"
						class="img-thumbnail" />
				</div>

			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">类型：</label>
				<div class="col-sm-8">
					<select id="iaType" name="iaType" class="form-control" type="text" disabled="disabled">
						<option value="1" ${invoiceApply.iaType==1?'selected':''}>一般发票</option>
						<option value="2" ${invoiceApply.iaType==2?'selected':''}>增值税专用发票</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">数量：</label>
				<div class="col-sm-8">
					<input id="iaCount" name="iaCount" value="${invoiceApply.iaCount}" class="form-control"
						disabled="disabled" type="number" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">&nbsp;</label>
				<div class="col-sm-8">
					<select id="flag" name="flag" class="form-control">
						<option value="true">通过</option>
						<option value="false">不通过</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">&nbsp;</label>
				<div class="col-sm-8">
					<a class="btn btn-primary btn-del" onclick="submitHandler()">
						<i class="fa fa-play"></i>
						提交审核
					</a>
				</div>
			</div>


		</form>
	</div>
	<script type="text/javascript">
		var prefix = "${ctx}/system/apply";
	
		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/complete", $('#form-invoiceApply-edit').serialize(), function(data) {
					if (data.code == 0) {
						alert(data.msg);
						window.location.href = '${ctx}/toDoTask/list/invoiceApply';
					}
				});
			}
		}
	</script>
</body>
</html>
